﻿import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Echarts from './views/charts/Echarts.vue'
import User from './views/user/User.vue'
import ArticleType from'./views/blog/ArticleType.vue'
import Article from'./views/blog/Article.vue'
import Dict from './views/dict/Dict.vue' 
import Menu from './views/system/Menu.vue'
import Permission from './views/system/Permission.vue'
import Employee from './views/system/Employee.vue'
import Role from './views/system/Role.vue'   
let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: Home,
        name: '首页',
        leaf: true,//只有一个节点
        iconCls: 'el-icon-s-home',
        children: [
            { path: '/echarts', component: Echarts, name: '首页管理' }
        ]
    },    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    },
    // {
    //     path: '/',
    //     component: Home,
    //     name: '系统管理',
    //     iconCls: 'el-icon-monitor',//图标样式class
    //     children: [
    //         { path: '/Permission', component: Permission, name: '权限管理' },
    //         { path: '/Menu', component: Menu, name: '菜单管理' },
    //         { path: '/log', component: User, name: '操作日志' },
    //         { path: '/Employee', component: Employee, name: '员工管理' },
    //         { path: '/Role', component: Role, name: '角色管理' },
    //     ]
    // },
    // {
    //     path: '/',
    //     component: Home,
    //     name: '用户管理',
    //     iconCls: 'el-icon-monitor',//图标样式class
    //     children: [
    //         { path: '/user', component: User, name: '用户信息管理' },
    //     ]
    // },
    // {
    //     path: '/',
    //     component: Home,
    //     name: '博客管理',
    //     iconCls: 'el-icon-monitor',//图标样式class
    //     children: [
    //         { path: '/article', component: Article, name: '文章管理' },
    //         { path: '/articleType', component: ArticleType, name: '文章类型管理' },
    //         { path: '/paramManager', component: User, name: '参数管理' },
            
    //     ]
    // },
    // {
    //     path: '/',
    //     component: Home,
    //     name: '数据字典',
    //     iconCls: 'el-icon-monitor',//图标样式class
    //     children: [
    //        { path: '/dict', component: Dict, name: '字典管理' },
    //     ]
    // }

];

export default routes;
